﻿using System;
using System.Collections.Generic;

namespace Effects.GUI
{
    /// <summary>
    ///  Thrown when desired effect is not found in the EffectLibrary.
    /// </summary>
    public class EffectNotFoundException : Exception
    {
        /// <summary>
        ///  Name of the effect
        /// </summary>
        private string effectName;
        
        /// <summary>
        ///  Gets the effect name.
        /// </summary>
        public string EffectName
        {
            get { return effectName; }
        }

        /// <summary>
        ///  Creates new instance with given name of the effect that has not been found.
        /// </summary>
        /// <param name="effect"> Name of missing effect. </param>
        public EffectNotFoundException(string effect)
        {
            this.effectName = effect;
        }
    }
}
